all: ProxyServerMain ProxyClientMain

HTTP.o:Cache/HTTP.cpp Cache/HTTP.h
	g++ -c Cache/HTTP.cpp
StringOps.o:Stringops/StringOps.cpp Stringops/StringOps.h
	g++ -c Stringops/StringOps.cpp
errors.o:Errors/errors.cpp Errors/errors.h
	g++ -c Errors/errors.cpp
ProxyServer.o:Proxy/ProxyServer.h Proxy/ProxyServer.cpp StringOps.o errors.o
	g++ -c Proxy/ProxyServer.cpp
ProxyConnection.o:Proxy/ProxyConnection.h Proxy/ProxyConnection.cpp StringOps.o HTTP.o errors.o
	g++ -c Proxy/ProxyConnection.cpp
ProxyServerMain.o:Proxy/ProxyServerMain.cpp
	g++ -c Proxy/ProxyServerMain.cpp
ProxyClientMain.o:Proxy/ProxyClientMain.cpp
	g++ -c Proxy/ProxyClientMain.cpp
ProxyServerMain:ProxyServerMain.o ProxyServer.o ProxyConnection.o
	g++ -o ProxyServerMain ProxyServerMain.o ProxyServer.o ProxyConnection.o StringOps.o HTTP.o errors.o
ProxyClientMain:ProxyClientMain.o ProxyServer.o ProxyConnection.o
	g++ -o ProxyClientMain ProxyClientMain.o ProxyConnection.o StringOps.o HTTP.o errors.o

.PHONY:clean
clean:
	-rm *.o
	-rm ProxyClientMain
	-rm ProxyServerMain
